#{extends 'main.html' /} 
#{set title:'View Impediment Log' /}
<html>
<script type="text/javascript">
		jQuery(function($){
			$(".ILtiptip").tipTip({
				fadeIn:30,
				fadeOut:30
			});
		});
</script>
<link rel="stylesheet" href="/public/stylesheets/tableStyle.css" />
<h2><a style ="color:#400040;" href=" @{Projects.showProject(pro.getEntityId())}"> ${pro.name} </a> > Impediment Log</h2><hr>
<div  style="overflow:scroll; height:500px; width=900px">
<table id="ImpLog" align="center" cellspacing=0>
	<tr>
		<th>Task of Type Impediment</th>
		<th>Raised On</th>
		<th>Raised By</th>
		<th>Notes/Comments</th>
	</tr>
	<tr>
		#{list items:imptaskLog ,as:'impTskL'}
		#{if impTskL!=null}
			#{list items:allImptasks, as:'impdtask'}
				#{if impdtask.getEntityId()==impTskL.artifactId}
			<tr>
				#{if impdtask.status.status=="CLOSED"}
					<td>
						<img class="ILtiptip" src="/public/images/closed_Itask.jpg" title="This Task has been closed :D"/> <s>${impdtask.description}</s>
					</td>
				#{/if}
				#{else}
					<td id="task">
						${impdtask.description}
					</td>
				#{/else}
				#{if impdtask.status.status=="CLOSED"}
				<td>
				     <s>${impTskL.date.getTime()}</s>
				</td>
				#{/if}
				#{else}
				<td id="Raised_ON">
				     ${impTskL.date.getTime()}
				</td>
				#{/else}
				#{if impdtask.status.status=="CLOSED"}
				<td >
					#{list items:userChangedt, as:'users'}
						#{if impTskL.userId==users.getEntityId()}
							<s>${users.userName}</s>
						#{/if}
					#{/list}
				</td>
				#{/if}
				#{else}
				<td id="Raised_by">
					#{list items:userChangedt, as:'users'}
						#{if impTskL.userId==users.getEntityId()}
							${users.userName}
						#{/if}
					#{/list}
				</td>
				#{/else}
				#{if impdtask.status.status=="CLOSED"}
				<td>
					<s>${impTskL.userComment}</s>
				</td>
				#{/if}
				#{else}
				<td id="comment">
					${impTskL.userComment}
				</td>
				#{/else}
			</tr>
				#{/if}
			#{/list}
		#{/if}
		#{/list}
	</tr>
	</table>
</div>
</html>